<%@page import="java.io.PrintWriter"%>
<%@page import="java.io.StringWriter"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ page isErrorPage="true" %>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Exception 발생</title>
</head>
<body>

<%= exception.toString() %><br/>

<%
out.println("<!--");

StringWriter sw = new StringWriter();
PrintWriter writer = new PrintWriter(sw);
exception.printStackTrace(writer);

out.println(sw.toString());

sw.close();
writer.close();

out.println("-->");
%>

</body>
</html>